package club.justwill.single.persistence.document;

import org.springframework.data.mongodb.core.index.Indexed;
import org.springframework.data.mongodb.core.mapping.Document;
import org.springframework.data.mongodb.core.mapping.Field;

/**
 * Created by luoyu on 1/29/16.
 */
@Document(collection = "user_security_code")
public class UserSecurityCode extends MongoDocument{

    @Field("user_id")
    @Indexed(name="user_id")
    private long userId;

    @Field("security_code")
    private String securityCode;

    public long getUserId() {
        return userId;
    }

    public void setUserId(long userId) {
        this.userId = userId;
    }

    public String getSecurityCode() {
        return securityCode;
    }

    public void setSecurityCode(String securityCode) {
        this.securityCode = securityCode;
    }
}
